package com.chixing.day02;

public class SwitchCaseDemo {
    public static void main(String[] args) {
        /**
         * switch - case 后的变量的类型:
         *           能够转换成int类型的:char byte short int
         *                            Character Byte Short Integer
         *                            String
         *                            enum (枚举)
         */
        int day = 2;
        switch (day) {
            case 1:
                System.out.println("星期一");
                break;
            case 2:
                System.out.println("星期二");
                break;
            case 3:
                System.out.println("星期三");
                break;
            default:
                System.out.println("错误");
                break;
        }
    }
}
